<%@ page import="com.econage.eccm.test.base.webdatasource.web.AppDataSourceContext" %>
<%@ page import="com.econage.eccm.test.base.webdatasource.web.AppDataSourceFilter" %>
<%@ page import="java.util.List" %>
<%@ page import="com.google.common.base.Joiner" %><%--
  Created by IntelliJ IDEA.
  User: stone
  Date: 2017/12/16
  Time: 17:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%!
    Joiner singleHtmlStacksJoiner = Joiner.on("<br>").skipNulls();
%>
<html>
<head>
    <title>数据库状态</title>
</head>
<body>
<%
    AppDataSourceContext appDataSourceContext = AppDataSourceFilter.appDataSourceContext;
%>

<div>
    <%=AppDataSourceContext.VERSION%>
</div>

<%
for(StackTraceElement[] stacks  : appDataSourceContext.getRunningConnectionStacks()){
    out.write("<div>");
    out.write(singleHtmlStacksJoiner.join(stacks));
    out.write("</div>");
}
%>


</body>
</html>
